<?php
class SearchTab extends CWidget
{
	public $postParams=array();
	public $config=array();
	
	public function run()
  	{?>
  		<div class="tab_wrap">

  <div id="search">
					
    		<ul class="nav helv_black">
                <li class="nav-one"><a href="#search_offers" class="current">SEARCH OFFERS</a></li>
                <li class="nav-two"><a href="#search_jobs">SEARCH JOBS</a></li>
            </ul>
    		
    		<div class="list-wrap">
    		  
    			<div id="search_offers">
    			<?php 
    		  $model = new Offer;
    		  $form=$this->beginWidget('CActiveForm', array(
			  'id'=>'search-offer',
			'enableAjaxValidation'=>false,
    		'action'=>ApplicationConfig::getURL("", "site", "searchoffer"),
		)); ?>
    				<div class="locator_wrap">
  
  <div class="">
  <!--<h2 class="mod_title helv_black">Store <span class="helv_neue_thin">Locator</span></h2>-->
  <div class="fnt13 helv_light">Looking for exclusive offers in your play zone. Use our form below to search for offers</div>

  		
        <div class="mt15">
        <?php echo $form->dropDownList($model,'offer_type', CHtml::listData(Offer::model()->findAll(), 'offer_type', 'offer_type'),array(
		'empty'=>'Choose Offer',
        'id'=>'offer_type'));
         ?>

              </div>
              <div class="mt15">  
                         <?php echo $form->dropDownList($model,'offer_redeem_cityID', CHtml::listData(City::model()->findAll(), 'cityID', 'city_name'),array(
		'empty'=>'Choose City',
        'id'=>'offer_city_id'));
         ?>
  			</div>
			<div class="mt15">
				<input type="text" AutoComplete="off" name="keyword" value="Type Keyword" onclick="if(this.value=='Type Keyword'){this.value=''}" onblur="if(this.value==''){this.value='Type Keyword'}" class="keyword fnt15 pl10" />
			</div>
        	<div class="spacer15">&nbsp;</div>
  		<div class="fl"><input class="store_submit" type="submit" value="" /></div>
		<div class="fl wh ml5 mt10">OR</div>
		<div class="fl ml5"><input class="browse_all" type="submit" value="" /></div>
		<div class="cl"></div>  
  </div>
  
</div>
<div class="cl"></div>
<?php $this->endWidget(); ?>
    			</div>
        		  
        		      		 
        		 <div id="search_jobs" class="hide">
        		  <?php 
    		  $model = new Job;
    		  $form=$this->beginWidget('CActiveForm', array(
			  'id'=>'search-job',
			'enableAjaxValidation'=>false,
    		'action'=>ApplicationConfig::getURL("", "site", "job"),
		)); ?>
                  	<div class="locator_wrap">
  
  <div class="">
  <!--<h2 class="mod_title helv_black">Store <span class="helv_neue_thin">Locator</span></h2>-->
  <div class="fnt13 helv_light">Looking for Jobs in your play zone. Use our form below to search for Jobs</div>
  		
        <div class="mt15">
        <?php echo $form->dropDownList($model,'job_type',ApplicationConfig::app()->params['job_params']['type'],array('empty' => 'Select Job type','id'=>'job_type'));
         ?>
              </div>
              <div class="mt15">  
        <?php echo $form->dropDownList($model,'job_location_cityID', CHtml::listData(City::model()->findAll(), 'cityID', 'city_name'),array(
		'empty'=>'Choose City',
        'id'=>'job_city_id'));
         ?>
  			</div>
			<div class="mt15">
				<input type="text" AutoComplete="off" name="keyword" value="Type Keyword" onclick="if(this.value=='Type Keyword'){this.value=''}" onblur="if(this.value==''){this.value='Type Keyword'}" class="keyword fnt15 pl10" />
			</div>
        	<div class="spacer15">&nbsp;</div>
  		<div class="fl"><input class="store_submit" type="submit" value="" /></div>
		<div class="fl wh ml5 mt10">OR</div>
		<div class="fl ml5"><?php echo CHtml::submitButton('', array('submit' => ApplicationConfig::getURL("", "site", "job"),'class'=>'browse_all')); ?></div>
		<div class="cl"></div>  
  </div>
  
</div>
<div class="cl"></div>
<?php $this->endWidget(); ?>
        		 </div>
        		
    		 </div> <!-- END List Wrap -->
		 
		 </div>

  
  
  
</div>
<div class="cl pt1"></div>  		
  	<?php }
}
?>  
 